package com.yfp.client.controller;

import com.yfp.client.annotation.AnonymousAccess;
import com.yfp.client.service.MiniJingangService;
import com.yfp.common.core.domain.R;
import com.yfp.client.domain.MiniJingang;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 
 * @version 1.0
 * @date 2024-12-18 11:22
 */
@RestController
@RequestMapping("/client/miniJinGang")
@Tag(name = "金刚区")
public class MiniJinGangController {

    @Resource
    private MiniJingangService miniJingangService;

    @GetMapping("/list")
    @Operation(summary = "金刚区")
    @AnonymousAccess
    public R<List<MiniJingang>> list(){
        return R.ok(miniJingangService.miniJinGangList());
    }

}
